diff options
Diffstat (limited to 'tests/cassettes/test_media_post[False].yaml')
-rw-r--r-- | tests/cassettes/test_media_post[False].yaml | 54 |
1 files changed, 25 insertions, 29 deletions
diff --git a/tests/cassettes/test_media_post[False].yaml b/tests/cassettes/test_media_post[False].yaml index 86547cb..b806e50 100644 --- a/tests/cassettes/test_media_post[False].yaml +++ b/tests/cassettes/test_media_post[False].yaml | |||
@@ -1,13 +1,13 @@ | |||
1 | interactions: | 1 | interactions: |
2 | - request: | 2 | - request: |
3 | body: !!binary | | 3 | body: !!binary | |
4 | LS1iYmM3OTA0MWRjZGE0NGZkOTMyY2ZhYWU2MjhhMmU1Zg0KQ29udGVudC1EaXNwb3NpdGlvbjog | 4 | LS1lMGE2ZDM2ZDI1Yjc0OTJhYTA3YjA2ZTQyNzFhMmVlMw0KQ29udGVudC1EaXNwb3NpdGlvbjog |
5 | Zm9ybS1kYXRhOyBuYW1lPSJkZXNjcmlwdGlvbiINCg0KSm9obiBMZW5ub24gZG9pbmcgYSBmdW5u | 5 | Zm9ybS1kYXRhOyBuYW1lPSJkZXNjcmlwdGlvbiINCg0KSm9obiBMZW5ub24gZG9pbmcgYSBmdW5u |
6 | eSB3YWxrDQotLWJiYzc5MDQxZGNkYTQ0ZmQ5MzJjZmFhZTYyOGEyZTVmDQpDb250ZW50LURpc3Bv | 6 | eSB3YWxrDQotLWUwYTZkMzZkMjViNzQ5MmFhMDdiMDZlNDI3MWEyZWUzDQpDb250ZW50LURpc3Bv |
7 | c2l0aW9uOiBmb3JtLWRhdGE7IG5hbWU9ImZvY3VzIg0KDQotMC41LDAuMw0KLS1iYmM3OTA0MWRj | 7 | c2l0aW9uOiBmb3JtLWRhdGE7IG5hbWU9ImZvY3VzIg0KDQotMC41LDAuMw0KLS1lMGE2ZDM2ZDI1 |
8 | ZGE0NGZkOTMyY2ZhYWU2MjhhMmU1Zg0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBu | 8 | Yjc0OTJhYTA3YjA2Z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 | xMSN89s+KVKgU4XMHLHOFF7LVZRJrFV22pUqBoKKIKucrmmTAxMZfilSoFO2xicuMnjFStYMZkHV | 944 | xMSN89s+KVKgU4XMHLHOFF7LVZRJrFV22pUqBoKKIKucrmmTAxMZfilSoFO2xicuMnjFStYMZkHV |
945 | 3XP4pUqC5Zbdy3MwJvu7U0AjASTLfOy9aVKgjPC5Yj9imCTIjyrGTjBn9aVKgY09xujjo55uzvSp | 945 | 3XP4pUqC5Zbdy3MwJvu7U0AjASTLfOy9aVKgjPC5Yj9imCTIjyrGTjBn9aVKgY09xujjo55uzvSp |
946 | UqD/2Q0KLS1iYmM3OTA0MWRjZGE0NGZkOTMyY2ZhYWU2MjhhMmU1Zi0tDQo= | 946 | UqD/2Q0KLS1lMGE2ZDM2ZDI1Yjc0OTJhYTA3YjA2ZTQyNzFhMmVlMy0tDQo= |
947 | headers: | 947 | headers: |
948 | Accept: ['*/*'] | 948 | Accept: ['*/*'] |
949 | Accept-Encoding: ['gzip, deflate'] | 949 | Accept-Encoding: ['gzip, deflate'] |
950 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 950 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] |
951 | Connection: [keep-alive] | 951 | Connection: [keep-alive] |
952 | Content-Length: ['53738'] | 952 | Content-Length: ['53738'] |
953 | Content-Type: [multipart/form-data; boundary=bbc79041dcda44fd932cfaae628a2e5f] | 953 | Content-Type: [multipart/form-data; boundary=e0a6d36d25b7492aa07b06e4271a2ee3] |
954 | User-Agent: [python-requests/2.18.4] | 954 | User-Agent: [python-requests/2.18.4] |
955 | method: POST | 955 | method: POST |
956 | uri: http://localhost:3000/api/v1/media | 956 | uri: http://localhost:3000/api/v1/media |
957 | response: | 957 | response: |
958 | body: {string: '{"id":"1","type":"image","url":"http://localhost/system/media_attachments/files/000/000/001/original/abfdfa2542f48377.jpeg?1561208593","preview_url":"http://localhost/system/media_attachments/files/000/000/001/small/abfdfa2542f48377.jpeg?1561208593","remote_url":null,"text_url":"http://localhost/media/DRJkMLZYxev5mJh9VqE","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John | 958 | body: {string: '{"id":"17","type":"image","url":"http://localhost/system/media_attachments/files/000/000/017/original/cb960b20e18d1043.jpeg?1561237959","preview_url":"http://localhost/system/media_attachments/files/000/000/017/small/cb960b20e18d1043.jpeg?1561237959","remote_url":null,"text_url":"http://localhost/media/P3dfEUOpakQ4eB182VI","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John |
959 | Lennon doing a funny walk","blurhash":"UGD9YgIo00j[NFofR%M{IURj%Ms;D%of%MR%"}'} | 959 | Lennon doing a funny walk","blurhash":"UGD9YgIo00j[NFofR%M{IURj%Ms;D%of%MR%"}'} |
960 | headers: | 960 | headers: |
961 | Cache-Control: ['no-cache, no-store'] | 961 | Cache-Control: ['no-cache, no-store'] |
@@ -967,29 +967,27 @@ interactions: | |||
967 | X-Download-Options: [noopen] | 967 | X-Download-Options: [noopen] |
968 | X-Frame-Options: [SAMEORIGIN] | 968 | X-Frame-Options: [SAMEORIGIN] |
969 | X-Permitted-Cross-Domain-Policies: [none] | 969 | X-Permitted-Cross-Domain-Policies: [none] |
970 | X-Request-Id: [4c4f3fed-01c4-4996-b065-d5bb42a625d1] | 970 | X-Request-Id: [a092eb6e-aae8-4a90-833a-3e0ac44a52bd] |
971 | X-Runtime: ['0.297668'] | 971 | X-Runtime: ['0.295956'] |
972 | X-XSS-Protection: [1; mode=block] | 972 | X-XSS-Protection: [1; mode=block] |
973 | content-length: ['590'] | 973 | content-length: ['591'] |
974 | status: {code: 200, message: OK} | 974 | status: {code: 200, message: OK} |
975 | - request: | 975 | - request: |
976 | body: status=LOL+check+this+out&media_ids%5B%5D=1 | 976 | body: status=LOL+check+this+out&media_ids%5B%5D=17 |
977 | headers: | 977 | headers: |
978 | Accept: ['*/*'] | 978 | Accept: ['*/*'] |
979 | Accept-Encoding: ['gzip, deflate'] | 979 | Accept-Encoding: ['gzip, deflate'] |
980 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 980 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] |
981 | Connection: [keep-alive] | 981 | Connection: [keep-alive] |
982 | Content-Length: ['43'] | 982 | Content-Length: ['44'] |
983 | Content-Type: [application/x-www-form-urlencoded] | 983 | Content-Type: [application/x-www-form-urlencoded] |
984 | User-Agent: [python-requests/2.18.4] | 984 | User-Agent: [python-requests/2.18.4] |
985 | method: POST | 985 | method: POST |
986 | uri: http://localhost:3000/api/v1/statuses | 986 | uri: http://localhost:3000/api/v1/statuses |
987 | response: | 987 | response: |
988 | body: {string: '{"id":"102315366413514093","created_at":"2019-06-22T13:03:13.967Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/mastodonpy_test/statuses/102315366413514093","url":"http://localhost/@mastodonpy_test/102315366413514093","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"content":"\u003cp\u003eLOL | 988 | body: {string: '{"id":"102317290909511493","created_at":"2019-06-22T21:12:39.445Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/mastodonpy_test/statuses/102317290909511493","url":"http://localhost/@mastodonpy_test/102317290909511493","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"content":"\u003cp\u003eLOL |
989 | check this out\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py | 989 | check this out\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py |
990 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 990 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":1,"emojis":[],"fields":[]},"media_attachments":[{"id":"17","type":"image","url":"http://localhost/system/media_attachments/files/000/000/017/original/cb960b20e18d1043.jpeg?1561237959","preview_url":"http://localhost/system/media_attachments/files/000/000/017/small/cb960b20e18d1043.jpeg?1561237959","remote_url":null,"text_url":"http://localhost/media/P3dfEUOpakQ4eB182VI","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John |
991 | Lennon","locked":true,"bot":false,"created_at":"2019-06-22T14:46:28.567Z","note":"\u003cp\u003eI | ||
992 | walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","followers_count":0,"following_count":0,"statuses_count":1,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[{"id":"1","type":"image","url":"http://localhost/system/media_attachments/files/000/000/001/original/abfdfa2542f48377.jpeg?1561208593","preview_url":"http://localhost/system/media_attachments/files/000/000/001/small/abfdfa2542f48377.jpeg?1561208593","remote_url":null,"text_url":"http://localhost/media/DRJkMLZYxev5mJh9VqE","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John | ||
993 | Lennon doing a funny walk","blurhash":"UGD9YgIo00j[NFofR%M{IURj%Ms;D%of%MR%"}],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} | 991 | Lennon doing a funny walk","blurhash":"UGD9YgIo00j[NFofR%M{IURj%Ms;D%of%MR%"}],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} |
994 | headers: | 992 | headers: |
995 | Cache-Control: ['no-cache, no-store'] | 993 | Cache-Control: ['no-cache, no-store'] |
@@ -1001,10 +999,10 @@ interactions: | |||
1001 | X-Download-Options: [noopen] | 999 | X-Download-Options: [noopen] |
1002 | X-Frame-Options: [SAMEORIGIN] | 1000 | X-Frame-Options: [SAMEORIGIN] |
1003 | X-Permitted-Cross-Domain-Policies: [none] | 1001 | X-Permitted-Cross-Domain-Policies: [none] |
1004 | X-Request-Id: [0ceb8d57-2323-4a8f-b29b-3e3b87c85017] | 1002 | X-Request-Id: [159ba237-8903-46bc-b8d6-67c8674a0988] |
1005 | X-Runtime: ['0.146228'] | 1003 | X-Runtime: ['0.146690'] |
1006 | X-XSS-Protection: [1; mode=block] | 1004 | X-XSS-Protection: [1; mode=block] |
1007 | content-length: ['2200'] | 1005 | content-length: ['1840'] |
1008 | status: {code: 200, message: OK} | 1006 | status: {code: 200, message: OK} |
1009 | - request: | 1007 | - request: |
1010 | body: null | 1008 | body: null |
@@ -1016,12 +1014,10 @@ interactions: | |||
1016 | Content-Length: ['0'] | 1014 | Content-Length: ['0'] |
1017 | User-Agent: [python-requests/2.18.4] | 1015 | User-Agent: [python-requests/2.18.4] |
1018 | method: DELETE | 1016 | method: DELETE |
1019 | uri: http://localhost:3000/api/v1/statuses/102315366413514093 | 1017 | uri: http://localhost:3000/api/v1/statuses/102317290909511493 |
1020 | response: | 1018 | response: |
1021 | body: {string: '{"id":"102315366413514093","created_at":"2019-06-22T13:03:13.967Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/mastodonpy_test/statuses/102315366413514093","url":"http://localhost/@mastodonpy_test/102315366413514093","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"text":"LOL | 1019 | body: {string: '{"id":"102317290909511493","created_at":"2019-06-22T21:12:39.445Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/mastodonpy_test/statuses/102317290909511493","url":"http://localhost/@mastodonpy_test/102317290909511493","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"text":"LOL |
1022 | check this out","reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 1020 | check this out","reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"created_at":"2019-06-22T23:11:52.441Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":1,"emojis":[],"fields":[]},"media_attachments":[{"id":"17","type":"image","url":"http://localhost/system/media_attachments/files/000/000/017/original/cb960b20e18d1043.jpeg?1561237959","preview_url":"http://localhost/system/media_attachments/files/000/000/017/small/cb960b20e18d1043.jpeg?1561237959","remote_url":null,"text_url":"http://localhost/media/P3dfEUOpakQ4eB182VI","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John |
1023 | Lennon","locked":true,"bot":false,"created_at":"2019-06-22T14:46:28.567Z","note":"\u003cp\u003eI | ||
1024 | walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1561208564","followers_count":0,"following_count":0,"statuses_count":1,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[{"id":"1","type":"image","url":"http://localhost/system/media_attachments/files/000/000/001/original/abfdfa2542f48377.jpeg?1561208593","preview_url":"http://localhost/system/media_attachments/files/000/000/001/small/abfdfa2542f48377.jpeg?1561208593","remote_url":null,"text_url":"http://localhost/media/DRJkMLZYxev5mJh9VqE","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John | ||
1025 | Lennon doing a funny walk","blurhash":"UGD9YgIo00j[NFofR%M{IURj%Ms;D%of%MR%"}],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} | 1021 | Lennon doing a funny walk","blurhash":"UGD9YgIo00j[NFofR%M{IURj%Ms;D%of%MR%"}],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} |
1026 | headers: | 1022 | headers: |
1027 | Cache-Control: ['no-cache, no-store'] | 1023 | Cache-Control: ['no-cache, no-store'] |
@@ -1033,9 +1029,9 @@ interactions: | |||
1033 | X-Download-Options: [noopen] | 1029 | X-Download-Options: [noopen] |
1034 | X-Frame-Options: [SAMEORIGIN] | 1030 | X-Frame-Options: [SAMEORIGIN] |
1035 | X-Permitted-Cross-Domain-Policies: [none] | 1031 | X-Permitted-Cross-Domain-Policies: [none] |
1036 | X-Request-Id: [f111387d-93bd-4bae-8b57-87e078ae35b6] | 1032 | X-Request-Id: [7596962f-f445-42da-8d51-8bd30f142ae3] |
1037 | X-Runtime: ['0.121595'] | 1033 | X-Runtime: ['0.137753'] |
1038 | X-XSS-Protection: [1; mode=block] | 1034 | X-XSS-Protection: [1; mode=block] |
1039 | content-length: ['2170'] | 1035 | content-length: ['1810'] |
1040 | status: {code: 200, message: OK} | 1036 | status: {code: 200, message: OK} |
1041 | version: 1 | 1037 | version: 1 |